_Pragma("once")

#include "tool.hpp"
#include "texture.hpp"

namespace sdl_engine {

class TextureStorage {
public:
    Texture* Load(const std::string&);
    Texture* Load(const std::string& filename, const std::string& name);

    Texture* Get(const std::string&);
    inline void Clear() { datas_.clear(); }

private:
    std::map<std::string, Unique<Texture>> datas_;
};

}
